<?php

class UserRating extends Portlet {

    public $item_id;
    public $type;
    public $rating = null;
    public $is_down = false;

    protected function renderContent() {
        $this->is_down = Y::isAuthed() ? $this->is_down : false;
        $this->render('userRating', array(
            'fl' => $this->is_down,
            "item_id" => $this->item_id,
            "type" => $this->type,
            "rating" => $this->rating
        ));
    }
}
